﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_Feedback_Create" %>
<script type="text/javascript">
    //Kiem tra ki tu
    function isNumberKey(evt) {

        var charCode = (evt.which) ? evt.which : event.keyCode
        if (charCode > 31 && (charCode < 48 || charCode > 57)) return false;

        return true;
    }
</script>

<div class="BoxField">

	<div class="HeadTitle">
		<h3>ĐÓNG GÓP Ý KIẾN</h3>
	</div>


</div>
<div class="bgmid_porletright">
    <div class="bgcontent_porletinfo">
        <div style="text-align: justify; padding: 10px">
            <div>
                <asp:Label ID="lblContent" runat="server"></asp:Label>
            </div>
            <div class="lblEdit">
                <asp:Literal ID="ltlFeedbackLabel" runat="server" Text="Hãy đóng góp các ý kiến quý báu của bạn bằng cách nhập vào mẫu form bên dưới:"></asp:Literal>
            </div>
            <div class="DivRequired">
                <span class="fieldRequired">&nbsp;</span><asp:Literal ID="ltlRequiredToEnterLabel"
                    runat="server" Text="Trường yêu cầu nhập dữ liệu"></asp:Literal>
            </div>
            <div class="Error">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </div>
            <div class="lblEdit">
                <asp:Label ID="lblCustomerName_edit" runat="server" Text="Tên của bạn:" /><span class="fieldRequired">&nbsp;</span>
            </div>
            <div style="height: 30px">
                <asp:TextBox ID="txtCustomerName" CssClass="TextBox" runat="server" Text="" Width="350px" />
                <%  If Session("LanguageId") = 1 Then
                %>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCustomerName"
                    ErrorMessage="Hãy nhập tên của bạn" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Hãy nhập email của bạn"
                    SetFocusOnError="True" Display="None" ControlToValidate="txtCustomerEmail"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtCustomerEmail"
                    ErrorMessage="Định dạng email chưa đúng"  Display="None" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" Display="None" runat="server"
                    ErrorMessage="Hãy nhập nội dung " SetFocusOnError="True" ControlToValidate="txtQuestion"></asp:RequiredFieldValidator>
                <%
                Else
                %>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCustomerName"
                    ErrorMessage="Please enter your name" Display="None" SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter your email"
                    SetFocusOnError="True" Display="None" ControlToValidate="txtCustomerEmail"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtCustomerEmail"
                    ErrorMessage="Email format is incorrect" Display="None" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="None" runat="server"
                    ErrorMessage="Please enter the content " SetFocusOnError="True" ControlToValidate="txtQuestion"></asp:RequiredFieldValidator>
                <%
                End If%>
            </div>
            <div class="lblEdit">
                <asp:Label ID="lblCustomerAddress_edit" runat="server" Text="Địa chỉ:" />
            </div>
            <div style="height: 30px">
                <asp:TextBox ID="txtCustomerAddress" CssClass="TextBox" runat="server" Text="" Width="350px" />
            </div>
            <div class="lblEdit">
                <asp:Label ID="lblCustomerEmail_edit" runat="server" Text="Email:" /><span class="fieldRequired">&nbsp;</span>
            </div>
            <div style="height: 30px">
                <asp:TextBox ID="txtCustomerEmail" CssClass="TextBox" runat="server" Text="" Width="350px" />
            </div>
            <div class="lblEdit">
                <asp:Label ID="lblCustomerPhone_edit" runat="server" Text="Số điện thoại:" />
            </div>
            <div style="height: 30px">
                <asp:TextBox ID="txtCustomerPhone" CssClass="TextBox" runat="server" Text="" Width="350px" MaxLength="20"
                                onkeypress="javascript: return isNumberKey(event);" />
                &nbsp;&nbsp;</div>
            <div class="lblEdit">
                <asp:Label ID="lblCustomerNote_edit" runat="server" Text="Nội dung" /><span class="fieldRequired">&nbsp;</span>
            </div>
            <div>
                <asp:TextBox ID="txtQuestion" CssClass="TextBox" runat="server" Text="" TextMode="MultiLine"
                    Height="102px" Width="350px" />
            </div>
            <div style="padding-top: 5px">
                <div class="btnOrange">
                    <asp:Button ID="btnSave" runat="server" Text=" Gửi "  CssClass="btn"/>
                        <input type="reset" value="Đặt lại" class="btn"/>
                </div>
            </div>
        </div>
    </div>
    <div class="clear_both" style="height: 10px;">
    </div>
</div>
<div class="bgbottom_porletright">
</div>


